package com.rx.substation.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rx.substation.dao.StationDAO;

@Service
public class StationService {
	
	@Autowired
	StationDAO stationDAO;

	public List<String> getAllStationCode(String start,String end) {
		return stationDAO.getAllStationCode(start,end);
	}
	
	
	public String getStationNameByStationCode(String stationCode){
		return stationDAO.getStationNameByStationCode(stationCode);
		
	}
	
}
